//
//  MyCollectBtn.m
//  xpkc
//
//  Created by 胡志飞 on 15/11/30.
//  Copyright © 2015年 TopSage. All rights reserved.
//

#import "MyCollectBtn.h"

@implementation MyCollectBtn

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(instancetype)initWithFrame:(CGRect)frame{
    
    
    if (self = [super initWithFrame:frame]) {
        
        
//        CGRect titleFrame = self.titleLabel.frame;
//        titleFrame.origin.x = self.titleLabel.frame.origin.x + 40;
//        titleFrame.size.width = self.frame.size.width - 36;
//        self.titleLabel.textAlignment = NSTextAlignmentCenter;
//        self.titleLabel.font = [UIFont systemFontOfSize:14];
//        self.titleLabel.frame = titleFrame;
        
//        CGRect imageFrame = self.imageView.frame;
//        
//        imageFrame.size = CGSizeMake(18, 18);
//        
//        self.imageView.frame = imageFrame;
//        
//        self.imageView.frame = imageFrame;
        
        self.imgView = [[UIImageView alloc] initWithFrame:CGRectMake( 5, self.frame.size.height * 0.5 - 10  , 20, 20)];
        
        [self addSubview:self.imgView];
        
        self.namelabel = [[UILabel alloc] initWithFrame:CGRectMake( 30 , self.frame.size.height * 0.5 - 10, self.frame.size.width - 30, 20 )];
        
        [self addSubview:self.namelabel];
        
        
        
    }
    
    return self;
    
}


@end
